<script setup>
import { useAttrs } from "vue";
import { NButton, NModal } from 'naive-ui'
const $attrs = useAttrs()
console.log($attrs)
function onClickChangeMsg(e) {
  e.changeMsg()
}
</script>

<template>
  <n-button :="$attrs" @click="onClickChangeMsg($parent)" v-text="'点我试试'"></n-button>
  <n-modal title=""></n-modal>
</template>

<style scoped lang="scss">

</style>
